package com.examiner.service;

import com.examiner.bean.Manager;
import com.examiner.page.QueryInfo;

import java.util.List;

public interface ManagerService {
    /* 根据ID查找 */
    Manager findOne(Integer managerId);

    /* 根据用户名查询 */
    Manager findManagerByUserName(String managerUserName);

    /* 新增manager */
    void saveManager(Manager manager);

    /*  修改manager */
    void updateManager(Manager manager);

    /* 删除manager */
    void deleteManager(Integer managerId) throws Exception;

    List<Manager> getManagerList(QueryInfo queryInfo);

    Boolean updateManagerPassword(Integer managerId,String newPassword);

    int getTotal(String query);
}
